﻿using ErrorOr;

namespace Gym.Domain.RoomAggregate
{
    public static class RoomErrors
    {
        public static readonly Error CannotHaveMoreSessionThanSubscriptionAllows = Error.Validation(
        "Room.CannotHaveMoreSessionThanSubscriptionAllows",
        "一个房间的课程计划不能超过订阅允许的课程数量");

        public static readonly Error CannotHaveTwoOrMoreOverlappingSessions = Error.Validation(
            "Room.CannotHaveTwoOrMoreOverlappingSessions",
            "一个房间不能有两个或多个重叠的课程");
    }
}
